<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', width:60, unresize:true, sort:true, align:'center', edit:'text'}">排序</th>
        <th lay-data="{field:'questionId', width:80, unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'question',  unresize:true, align:'center'}">回访问题</th>
        <th lay-data="{field:'plat', unresize:true, align:'center',width:230}">业务类型</th>
        <!--<th lay-data="{field:'firstLetter', unresize:true, align:'center',width:80, edit:'text'}">首字母</th>-->
        <th lay-data="{field:'answerIdStr', width:150, unresize:true, align:'center'}">可选答案</th>
        <th lay-data="{field:'answerCategStr', width:210, unresize:true, align:'center'}">项目名称</th>
        <th lay-data="{field:'status', width:80, unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'操作',width:80, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.questionId}" class="">questionId</td>
        <td th:text="${item.question}" class="layui-gray">question</td>
        <td th:text="${T(com.zmn.plat.common.dictionary.ProductDict).translateBizType(item.bizType,'/')}" class="layui-gray">bizType</td>
        <!--<td th:text="${item.firstLetter}" class="layui-gray">firstLetter</td>-->
        <td th:text="${T(com.zmn.plat.manager.dictionary.ProductDict).getUnionNameBykvMapIdStr(item.answerIdStr, answerMap)}" class="layui-gray">answerIdStr</td>
        <td th:text="${T(com.zmn.plat.manager.dictionary.ProductDict).getUnionNameBykvMapIdStr(item.answerCategStr, categoryMap)}" class="layui-gray">answerCategStr</td>
        <td th:text="${item.status==2?'正常':'停用'}">status</td>
        <td>
            <a th:if="${#authPermit.checkPermit('/orderconfig/returnvisit/question/detail.action')}" href="javascript:void(0)" style="color: #00a0e9" th:onclick="addEditReturnVisitQuestion([[${item.questionId}]]);">修改</a>
        </td>
    </tr>
    </tbody>
</table>
